Contributions
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.platform.birt.reporting.layoutContrib">
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="widgettypes">
<widgetType name="reportParameters">
<handler-class>
org.nuxeo.ecm.platform.reporting.widget.HtmlReportParameterWidgetTypeHandler
</handler-class>
</widgetType>
</extension>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="layouts">
<layout name="birtReport">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml
</template>
</templates>
<rows>
<row>
<widget>model</widget>
</row>
<row>
<widget>key</widget>
</row>
<row>
<widget>parameters</widget>
</row>
</rows>
<widget name="key" type="text">
<labels>
<label mode="any">label.birt.reporting.reportKey</label>
</labels>
<translated>true</translated>
<fields>
<field>birt:reportKey</field>
</fields>
<widgetModes>
<mode value="create">hidden</mode>
</widgetModes>
</widget>
<widget name="model" type="template">
<labels>
<label mode="any">label.birt.reporting.reportModel</label>
</labels>
<translated>true</translated>
<fields>
<field>birt:modelRef</field>
</fields>
<properties mode="any">
<property name="template">/widgets/reportmodelref_widget_template.xhtml
</property>
<property name="required">true</property>
</properties>
</widget>
<widget name="parameters" type="reportParameters">
<labels>
<label mode="any">label.birt.reporting.reportParameters</label>
</labels>
<translated>true</translated>
<fields>
<field>birt:parameters</field>
</fields>
<widgetModes>
<mode value="create">hidden</mode>
</widgetModes>
</widget>
</layout>
<layout name="birtReportModel">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<rows>
<row>
<widget>modelName</widget>
</row>
<row>
<widget>parameters</widget>
</row>
</rows>
<widget name="modelName" type="text">
<labels>
<label mode="any">label.birt.reporting.reportModelName</label>
</labels>
<translated>true</translated>
<fields>
<field>birtmodel:reportName</field>
</fields>
<properties widgetMode="any">
<property name="required">false</property>
</properties>
<widgetModes>
<mode value="create">hidden</mode>
<mode value="edit">view</mode>
</widgetModes>
</widget>
<widget name="parameters" type="reportParameters">
<labels>
<label mode="any">label.birt.reporting.reportParameters</label>
</labels>
<translated>true</translated>
<fields>
<field>birtmodel:parameters</field>
</fields>
<widgetModes>
<mode value="create">hidden</mode>
</widgetModes>
</widget>
</layout>
<layout name="report_file">
<templates>
<template mode="any">/layouts/layout_default_template.xhtml</template>
</templates>
<rows>
<row>
<widget>report_file</widget>
</row>
</rows>
</layout>
</extension>
<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
point="widgets">
<widget name="report_file" type="template">
<labels>
<label mode="any">label.file.content</label>
</labels>
<translated>true</translated>
<fields>
<field>file:content</field>
<field>file:filename</field>
</fields>
<widgetModes>
<mode value="full_edit">edit</mode>
<mode value="edit">edit</mode>
<mode value="view">view</mode>
<mode value="view">preview</mode>
</widgetModes>
<properties mode="any">
<property name="template">/widgets/report_file_widget.xhtml</property>
<property name="required">true</property>
</properties>
</widget>
</extension>
</component>